package viewBusinessFacade;

import junit.framework.TestCase;
import org.junit.After;
import static org.junit.Assert.assertNotNull;
import org.junit.Before;
import org.junit.Test;

public class GUIFacadeTest extends TestCase
{

    GUIFacade facTest;

    @Before
    public void setUp()
    {
        facTest = new GUIFacade();
    }

    @Test
    public void testNewUser()
    {
        facTest.newUser("Zé", 100, "geNick", "12345678");
        assertNull(facTest.getUser());

        facTest.newUser("Damião", 160, "geNickk", "12345678");
        assertNull(facTest.getUser());

        facTest.newUser("Damião", 100, "", "12345678");
        assertNull(facTest.getUser());

        facTest.newUser("Damião", 100, "geNickkk", "12345");
        assertNull(facTest.getUser());
    }

}
